package com.atguigu.mediator.smarthouse;

/**
 * 同事类实现类 ： Curtains 窗帘
 */
public class ColleagueForCurtains extends Colleague {

	public ColleagueForCurtains(Mediator mediator, String name) {
		super(mediator, name);
		mediator.register(name, this);
	}

	@Override
	public void sendMessage(int stateChange) {
		this.getMediator().getMessage(stateChange, this.name);
	}

	/**
	 * Curtains 自定义方法
	 */
	public void upCurtains() {
		System.out.println("拉上窗帘");
	}

}
